#!/usr/bin/python
#-*- coding: utf-8 -*-

# CPBMI Python Homework 5-2
# Programmed by Seunghwan Kim

import re

result = "t = -1.2599, df = 7.268 p-value = 0.2467"

m = re.search("t = (-?\d+\.?\d*).*df = (-?\d+\.?\d*).*p-value = (-?\d+\.?\d*)", result)
print m.groups()